﻿using BrightIdeasSoftware;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FormTest
{
    public class UcVirtualObjectListView : VirtualObjectListView
    {
        public UcVirtualObjectListView()
        {
            Dock = DockStyle.Fill;
            VirtualMode = true;
            FullRowSelect = true;
            GridLines= true;
            Height = 40;
            HeaderUsesThemes=true;
            RowHeight = 36;
            HeaderMaximumHeight = 60;
            AllowColumnReorder = true;
            Sorting = SortOrder.None;
            EmptyListMsg = "没有数据可显示";

            Columns.Add(new OLVColumn("ID", "id"){ Width=80});
            Columns.Add(new OLVColumn("名称", "Name") { Width = 200 });
            Columns.Add(new OLVColumn("日期", "Date") { Width = 150 });
        }
    }
}
